<?php
/**
 *
 * Opinions interest object view
 */
global $CONFIG;

$entity = $vars['entity'];

$object = get_entity($entity->guid);

$owner_guid = $entity->owner_guid;

$owner = get_user($owner_guid);

$rating_guid = $object->rating_id;

$rating = get_entity($rating_guid);

$interest_guid = $rating->interest_id;

$interest = get_entity($interest_guid);

$rating_owner_guid = $rating->owner_guid;

$rating_owner = get_user($rating_owner_guid);

?>
<div>
    <pre><?=$owner->email?> says: <?=$object->comment?> to <?=$rating_owner->email?></pre>
</div>